import request from "@/utils/request";
// 获取赛事列表
export const getTournamentsList = (params) => {
  return request({
    url: "/tournaments/list",
    method: "get",
    params,
  });
};

// 添加删除赛事的方法
export function deleteTournament(id) {
  return request({
    url: '/tournaments/delete/' + id,
    method: 'get'
  })
}
// 创建赛事
export function createTournament(data) {
  return request({
    url: '/tournaments/create',
    method: 'post',
    data
  })
}
